#!/usr/bin/env bash

ip_addr=`netstat -antpl |  grep -i listen | grep 5813 | awk '{print $4}'`
curl -v -X POST -H "Content-Type:application/x-zc-object" -H "x-zc-major-domain-id:zc" -d '{"logLevel":"INFO"}' http://${ip_addr}/zc-julink/v1/x-set-log-level
cd /var/log/nb-iot-platform/ac-julink/
tail -f ac-julink.INFO | grep -vE "EOF|conn"



curl -v -X POST -H "Content-Type:application/x-zc-object" -H "x-zc-major-domain-id:zc" http://${ip_addr}/zc-julink/v1/x-debug
